package com.zhuss.product.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.product.site.AllSiteBo;
import com.zhuss.bean.bo.product.site.SearchSiteBo;
import com.zhuss.bean.unit.core.site.SiteBean;
import com.zhuss.bean.vo.product.site.DetailSiteVo;
import com.zhuss.bean.vo.product.site.ListSiteVo;
import com.zhuss.product.db.dao.gen.SiteMapper;
import com.zhuss.product.db.entity.Site;

/**
 * @description: 站点数据库Dao
 * @author: zhushanshuo
 * @create: Wed Dec 30 08:43:41 CST 2020
 **/

@Mapper
public interface SiteDao extends SiteMapper {
	
	void create(Site record);
	
	void delete(Site record);

	List<SiteBean> listAll();

	List<SiteBean> listById(@Param("siteIdList") List<Long> siteIdList);
	
	List<Site> listByName(@Param("name") String name);
	
	List<ListSiteVo> list(SearchSiteBo bo);
	
	Integer countList(SearchSiteBo bo);

	DetailSiteVo detail(@Param("siteId") Long siteId);

	List<ListSiteVo> allSite(AllSiteBo bo);

}
